package com.likai.jarscms.controller;

import java.util.List;

import com.likai.jarscms.utils.AnswerJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.likai.jarscms.pojo.TagBean;
import com.likai.jarscms.service.ITagService;

@Controller
@RequestMapping(value="/tag")
public class TagController {
	
	@Autowired
	@Qualifier("tagService")
	private ITagService tagService ;
	
	@RequestMapping(value="/list",method=RequestMethod.GET)
	@ResponseBody
	public List<TagBean> list() {
		return tagService.findList() ;
	}


	@RequestMapping(value="/findById",method=RequestMethod.GET)
	@ResponseBody
	public TagBean findById(String id) {
		return tagService.findById(id) ;
	}


}
